


    <div class="container">
      <div class="row">
        <div class="col-md-8" id="banner_2">
          <div id="carousel-generic" class="carousel slide" data-ride="carousel">
            <div class="com-banner-tag">今日热点</div>
            <!-- Indicators -->
            <ol class="carousel-indicators">
              <li data-target="#carousel-generic" data-slide-to="0" class="active"></li>
            </ol>

            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
              <div class="item active">
                  <a href="<?php echo Yii::app()->createUrl("new/view",array('NewId'=>$dataHot['id'])) ;?>"><img src="<?php echo $dataHot['banner_url'] ?>"></a>
                <div class="com-banner-inner-con">
                  <h3 class="com-text-overflow" >
                    <div class="com-text-con" ><?php echo $dataHot['title']; ?></div>
                    <div class="com-text-dotted" >…</div>
                  </h3>
                  <h4 class="com-text-overflow" >
                    <div class="com-text-con" ><?php echo $dataHot['content']; ?></div>
                    <div class="com-text-dotted" >…</div>
                  </h4>
                </div>
              </div>
            </div>

            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-generic" role="button" data-slide="prev">
              <span class="glyphicon glyphicon-chevron-left"></span>
              <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#carousel-generic" role="button" data-slide="next">
              <span class="glyphicon glyphicon-chevron-right"></span>
              <span class="sr-only">Next</span>
            </a>
          </div>
        </div>
          <?php /* $this->renderPartial('//layouts/_login');*/?>
            <div class="col-md-4" style="padding:0;">
          <div class="com-user">
            <h3 class="text-center">校友登录</h3>
            
            <form class="com-login" role="form">
              <div class="com-login-cell form-group has-feedback col-md-8 col-md-offset-2">
                <label class="sr-only" for="user_phone">手机号码</label>
                <input type="text" class="form-control" id="user_phone" placeholder="手机号码">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
              </div>
              <div class="com-login-check form-group has-feedback col-md-5 col-md-offset-2">
                <label class="sr-only" for="user_check">验证码</label>
                <input class="form-control" type="text" id="user_check" placeholder="验证码">
                <span class="glyphicon glyphicon-random form-control-feedback"></span>
              </div>
              <button type="submit" class="com-login-get btn btn-default col-md-3">获取验证码</button>
              <button type="submit" class="com-login-btn btn-lg btn btn-default col-md-8 col-md-offset-2">登录/注册</button>
            </form>
            
            <div class="com-download">
              <img src="/images/download_bg.png">
              <a href="javascript:;" class="com-ios"></a>
              <a href="javascript:;" class="com-andriod"></a>
            </div>
          </div>
                
        </div>
      </div>
    </div>
    <!-- Banner and Login End -->
    <!-- Main Block Start -->
    <div class="container">
      <div class="row">
        <!-- News -->
        <div class="com-news col-md-8">
          <div class="com-contain-nav">
            <div class="com-news-logo"></div>
          </div>
            
            
            <?php foreach($posts as $row):?> 

       
      
              <div class="com-contain">
                  <a class="com-contain-in" href="<?php echo Yii::app()->createUrl("new/view",array('NewId'=>$row['id'])) ;?>">
                  <div class="com-text-overflow" >
                       <div class="com-text-con" ><span class="glyphicon com-glyphicon-news"></span><?php echo $row['title'];?></div>
                       <div class="com-text-dotted" >…</div>
                   </div>
                   <div class="com-contain-con"><img src="<?php echo $row['min_banner_url'];?>" class="com-contain-img pull-left"><?php echo $row['content'];?></div>
                   <div class="com-news-progress">
                     <div class="pull-left"><?php echo $row['ctime'];?>&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-thumbs-up"></span>&nbsp;&nbsp;(<?php echo $row['zan_count']; ?>)</div>
                     <div href="" class="com-news-progress-link pull-right text-center">阅读全文</div>
                   </div>
                </a>
                <hr class="com-contain-hr">
              </div>
           <?php endforeach;?>
      
            
            <?php 
               $this->widget('CLinkPager',array(   //此处Yii内置的是CLinkPager，我继承了CLinkPager并重写了相关方法
                'header'=>'',
                'firstPageLabel' => '首页',              
                'prevPageLabel' => '上一页',
                'nextPageLabel' => '下一页',
                'lastPageLabel' => '最后一页',  
                'pages' => $pages,       
                'maxButtonCount'=>10,    //分页数目
                'htmlOptions'=>array(
                   'class'=>'com-pagination pagination',   //包含分页链接的div的class
                 )
              )
              );
            ?>
             <div class="com-pagination-jump pull-right">
                  跳转到：
                  <input type="text" class="form-control" id="pagination-jump">
                  <button id="btn-pagination">GO</button>
            </div>
           
        </div>
        <!-- Others -->
        <div class="col-md-4" style="padding:0;">
          <div class="com-contain-nav">
            <ul class="com-others-navtabs nav">
              <li class="com-others-toptenz">新闻排行榜</li>
            </ul>
          </div>
          <div>
            <div class="com-others">
               <?php  foreach($dataRightList as $k=>$v):?>
              <a href="<?php echo Yii::app()->createUrl("new/view",array('NewId'=>$v['id'])) ;?>" class="com-others-link">
                <div class="com-text-overflow">
                  <div class="com-text-con"><span class="com-others-num"><?php echo ($k+1);?></span> <?php echo $v['title'] ?></div>
                  <div class="com-text-dotted" >…</div>
               </div>
              </a>
              <hr class="com-contain-hr">
               <?php endforeach;?>
            </div>
          </div>
          <div class="com-others-banner">
            <a href=""><img src="/images/small_img.jpg"></a>
          </div>
        </div>
      </div>
    </div>
    <!-- Main Block End -->
    
    
    <script type="text/javascript">
    
    
    $('#btn-pagination').click(function(){
        var pva =$('#pagination-jump').val();
       window.location.href = 'index?page='+pva;
    });
    
    </script>